const path = require('path');
module.exports = {
  css: {
    loaderOptions: {
      stylus: {
        'resolve url': true,
        'import': [
          './src/theme'
        ]
      }
    }
  },
  pluginOptions: {
    'cube-ui': {
      postCompile: true,
      theme: true
    }
  },
  chainWebpack: (config) => {
    config.resolve.alias.set(
      'styles',
      path.join(__dirname, './src/assets/styles')
    );
  },
}
